package com.vanke.devops.domain.manager.docker.extend.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * @author 陈景阳
 * @since 2018/6/8
 */
@Getter
@Setter
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Status implements Serializable {

    private static final long serialVersionUID = 1L;

    @JsonProperty("Timestamp")
    private String timestamp;

    /**
     * "new" "allocated" "pending" "assigned" "accepted" "preparing" "ready" "starting" "running" "complete" "shutdown" "failed" "rejected"
     */
    @JsonProperty("State")
    private String state;

    @JsonProperty("Message")
    private String message;

    @JsonProperty("Err")
    private String err;

    @JsonProperty("ContainerStatus")
    private ContainerStatus containerStatus;

}
